package com.itheima.tlias84.dao.mapper;

import com.itheima.tlias84.controller.po.InsertClazzParam;
import com.itheima.tlias84.controller.po.InsertStuParam;
import com.itheima.tlias84.controller.po.SelectStuPageParam;
import com.itheima.tlias84.service.dto.SelectStuDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StuMapper {

    List<SelectStuDTO> selectPage(@Param("p") SelectStuPageParam param);

    SelectStuDTO selectById(@Param("id") Integer id);

    int batchDelete(@Param("ids") List<Integer> ids);

    int insertOne(@Param("p") InsertStuParam param);

    int updateStu(@Param("stu") InsertStuParam param);

    int violation(@Param("id") Integer id, @Param("s") Integer score);
}
